package info.fastpace.android.utils;

public abstract class AsyncTask<Params, Progress, Result> extends android.os.AsyncTask<Params, Progress, Result>{
	
	private boolean ignore = false;

	@Override
	protected final void onPostExecute(Result result) {
		if (ignore) {
			return;
		}
		onPostExecuteSpecific(result);
	}
	
	protected void onPostExecuteSpecific(Result result) {}

	public void ignore() {
		ignore = true;
	}

}
